﻿<?php
header("Content-type:text/html;charset=utf-8");
?>
<html>
<head>


</style><head><body>
<meta name="baidu-site-verification" content="gFRNXpjoF8" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<p>
  <style type="text/css">
<!--
<!--html5 speedup-->
<style>
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track-piece{background-color:#d2d2d2}
::-webkit-scrollbar-thumb{background:#888;}
::-webkit-scrollbar-thumb:hover{background-color:#999;}
#grid {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -11;
margin: 0;
padding: 0;
overflow: hidden;
background: url() repeat;
}
body,td,th {
	font-family: Georgia, Times New Roman, Times, serif;
}
a {
	font-family: Courier New, Courier, monospace;
	color: #6600FF;
}
a:visited {
	color: #000000;
	text-decoration: none;
}
a:hover {
	color: #000000;
	text-decoration: underline;
}
a:active {
	color: #000000;
	text-decoration: none;
}
a:link {
	color: #000000;
	text-decoration: none;
}
.STYLE30 {color: #000000}
.STYLE32 {font-size: small}
.STYLE33 {color: #000000; font-size: small; }
</style>
<div class="container">
  <p>
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script> 
    <script src="http://lib.sinaapp.com/js/bootstrap/2.3.1/js/bootstrap.min.js"></script>
    <script src="http://cdnjs.bootcss.com/ajax/libs/jquery-backstretch/2.0.3/jquery.backstretch.min.js"></script>
    <script>



	// Create an array of images that you'd like to use
var images = ["http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-017.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409624128806.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409021422417.jpg"];
	
	// A little script for preloading all of the images
	// It's not necessary, but generally a good idea
	$(images).each(function(){
	   $('<img/>')[0].src = this; 
	});
	
	// The index variable will keep track of which image is currently showing
	var index = 0;
	
	// Call backstretch for the first time,
	// In this case, I'm settings speed of 500ms for a fadeIn effect between images.
	$.backstretch(images[index], {speed: 1000});
	
	// Set an interval that increments the index and sets the new image
	// Note: The fadeIn speed set above will be inherited
	setInterval(function() {
		index = (index >= images.length - 1) ? 0 : index + 1;
		$.backstretch(images[index]);
	}, 10000);




function down(id)
{
	$("#msg").html('Download starting ,Please Wait.');
	$("#msgbox").fadeIn();
	htmlobj=$.ajax({url:"d.php?act=down&id="+id,async:false});
	if(htmlobj.responseText!="error")
	{
	location=htmlobj.responseText;
	$("#msgbox").fadeOut();
	
	}
	else
	{
		$("#msg").html("Download error ,Please try again.");
		$("#msgbox").fadeIn();
		
	}
}

 // popover demo
    $("a[data-toggle=popover]")
      .popover()
      .click(function(e) {


        e.preventDefault()
      })
  </script>
    </marquee>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>手动输入sid-过客</title>
<link rel="shortcut icon" href="icon.png"/>
<link rel="bookmark" href="icon.png"/>
<link rel='stylesheet' type='text/css' href='css.css'>
<link rel="stylesheet" type="text/css" href="css/register.css"/>
</head>
<body>
<?php
require 'connect.php';
$qid=$_GET['qid'];
$mysql = mysql_query("SELECT * FROM qqlist WHERE qid='$qid'");
$sql= mysql_fetch_array($mysql);
$user=$sql['myqq'];
$qq=$sql['qq'];

if($_COOKIE["SHANIUUSER"]!=$sql['myqq'])
{
echo '<div class="signup_container"><h1 class="signup_title">非法闯入！</h1><br>小伙子！你想干嘛？这不是你的QQ！<br><br><center><a href="./user.php">返回用户中心</a></center></div>';
exit();
}

echo '<div class="signup_container">
<h1 class="signup_title">sid手动输入界面</h1><br><br>';
if($_GET['sid'])
{
global $qid;
$sid=$_GET['sid'];
if(!preg_match('/^[0-9a-zA-Z-_]{24}$/',$sid)){
exit('注意检查你的sid输入是否有错呦！<br><br><a href="javascript:history.go(-1)">返回上一页</a>');
}
$url='http://ish.z.qq.com/infocenter_v2.jsp?B_UID='.$qq.'&sid='.$sid.'&g_ut=1';
$yz_get=file_get_contents($url);
if(!strstr($yz_get,'个人中心')){
echo '你提交的SID已经失效了,请重新提取！<br><br><a href="javascript:history.go(-1)">返回上一页</a>';
exit();
}
mysql_query("UPDATE qqlist SET sid='$sid',newsid='yes' WHERE qq='".$qq."'");
echo "sid更新成功！<br><br><br><a href='set.php?qid={$qid}'>返回中心</a>";
exit;
}

echo '
<form class="signup_form_form" action="" method="get" >
<input type="hidden" name="qid" value="'.$qid.'"><br>
请输入你的sid<br><br>
<textarea name="sid" cols=30 rows=2></textarea><br><br>
<input type="submit"  value="提交"><br><br></form><br><br>

<center>sid的提取</center><br><br>
<a href="sid.html" target="_blank">点击进入Sid提取</a></p><br><br>
';
echo "<br><br><br>
<a href='set.php?qid={$qid}'>返回中心</a>";

?>